package com.bojiu.lawsearch.lawsearch.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 提现记录表
 *
 * @author luhangqi
 * @email 1351395043@qq.com
 * @date 2020-04-22 21:28:21
 */
@Data
@Table(name = "mst_withdraw")
@ApiModel(value = "提现")
public class Withdraw {

    @ApiModelProperty(value = "人员id")
    @Column(name = "id")
    @Id
    @GeneratedValue(generator="JDBC")
    private Integer id;

    /**
     * 用户ID
     */
    @ApiModelProperty("用户ID")
    @Column(name = "user_id")
    private Integer userId;

    /**
     * 用户ID
     */
    @ApiModelProperty("用户ID")
    @Transient
    private String userNickname;

    /**
     * 用户联系方式
     */
    @ApiModelProperty("用户联系方式")
    @Transient
    private String account;

    /**
     * 提现账户
     */
    @ApiModelProperty("提现账户")
    @Column(name = "withdrawAccount")
    private String withdrawAccount;

    /**
     * 提现金额
     */
    @ApiModelProperty("提现金额")
    @Column(name = "amount")
    private BigDecimal amount;

    /**
     * 提现状态（0-待审核，1-提现成功，2-提现失败）
     */
    @ApiModelProperty("提现状态（0-待审核，1-提现成功，2-提现失败）")
    @Column(name = "state")
    private Integer state;

    /**
     * 接口参数
     */
    @ApiModelProperty("接口参数")
    @Column(name = "params")
    private String params;

    /**
     * 企业付款成功，返回的微信付款单号
     */
    @ApiModelProperty("企业付款成功，返回的微信付款单号")
    @Column(name = "paymentNo")
    private String paymentNo;

    /**
     * 企业付款成功时间
     */
    @ApiModelProperty("企业付款成功时间")
    @Column(name = "paymentTime")
    private String paymentTime;

    /**
     * 备注
     */
    @ApiModelProperty("备注")
    @Column(name = "remark")
    private String remark;

    /**
     * 创建日期
     */
    @ApiModelProperty("创建日期")
    @Column(name = "addTime")
    private Date addTime;

    /**
     * 修改日期
     */
    @ApiModelProperty("修改日期")
    @Column(name = "updateTime")
    private Date updateTime;

}
